/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package patterns.abstractfactory;

import patterns.factory2.Animal;

/**
 *
 * @author Zeus
 */
public class ReptileFactory extends SpeciesFactory {

    @Override
    public Animal getAnimal(String type) {
        if (type.equalsIgnoreCase("snake")) {
            return new Snake();
        }else{
            return new Tyrannosaurus();
        }
    }
}
